import api from './index'
import { axios, request } from '@/utils/request'
import Qs from 'qs'

//用户信息列表
export function userList(current,pageSize,ip,mobile,status ) {
    return axios({
      url: 'api/member/manage/members',
      method: 'get',
      params:{            
        'current':current,
        'pageSize':pageSize,
        'ip':ip,
        'mobile':mobile,
        'status':status
      }
    })
  }
//用户信息删除
export function deleteById(id) {
  return axios({
    url: `/api/member/manage/member/${id}`,
    method: 'delete',
  })
}
//启用禁用
export function updateStatus(id,status) {
  return axios({
    url: 'api/member/manage/update_status',
    method: 'put',
    params:{            
      'id':id,
      'status':status,
    }
  })
}
//提现密码
export function updatePricePwd(id,pricePwd) {
  return axios({
    url: '/api/member/manage/update_price_pwd',
    method: 'put',
    params:{            
      'id':id,
      'pricePwd':pricePwd,
    }
  })
}
//会员密码
export function updatePwd(id,pwd) {
  return axios({
    url: '/api/member/manage/update_pwd',
    method: 'put',
    params:{            
      'id':id,
      'pwd':pwd,
    }
  })
}
//钱包修改
export function updateWallet(id,wallet) {
  return axios({
    url: '/api/member/manage/update_wallet',
    method: 'put',
    params:{            
      'id':id,
      'wallet':wallet ,
    }
  })
}
//会员信息
export function getUserById(id) {
  return axios({
   
    url: `/api/member/manage/member/${id}`,
    method: 'get',
  })
}
//会员信息编辑
export function modifyUserById(info) {
  return axios({
    url: '/api/member/manage/member',
    method: 'put',
    data: info,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
